package com.sj.common.utils;

import java.util.Date;

/**
 * @description 复制用户信息
 * @author null
 * @date 2020/1/13 5:37 下午
 */
public class CopyUser {
    /**
     * @description 复制用户信息
     * @param  currentUser
     * @return CopyUserDTO
     * @author null
     * @date 2020/1/13 5:37 下午
     */
    public static CopyUserDTO copy(CurrentUser currentUser){
        CopyUserDTO CopyUserDTO = new CopyUserDTO();
        Date sysDate = new Date();
        CopyUserDTO.setRid("1");
        CopyUserDTO.setUpdtTime(sysDate);
        CopyUserDTO.setCrterId(currentUser.getUserAcctID());
        CopyUserDTO.setCrterName(currentUser.getName());
        CopyUserDTO.setCrteTime(sysDate);
        CopyUserDTO.setCrteOptinsNo(currentUser.getOrgUntID());
        CopyUserDTO.setOpterId(currentUser.getUserAcctID());
        CopyUserDTO.setOpterName(currentUser.getName());
        CopyUserDTO.setOptTime(sysDate);
        CopyUserDTO.setOptinsNo(currentUser.getOrgUntID());
        CopyUserDTO.setPoolareaNo(currentUser.getAdmDvs());
        return CopyUserDTO;
    }

    public static CopyUserDTO copyUpdate(CurrentUser currentUser){
        CopyUserDTO CopyUserDTO = new CopyUserDTO();
        Date sysDate = new Date();
        CopyUserDTO.setUpdtTime(sysDate);
        CopyUserDTO.setOpterId(currentUser.getUserAcctID());
        CopyUserDTO.setOpterName(currentUser.getName());
        CopyUserDTO.setOptTime(sysDate);
        CopyUserDTO.setOptinsNo(currentUser.getOrgUntID());
        CopyUserDTO.setPoolareaNo(currentUser.getAdmDvs());
        return CopyUserDTO;
    }
}
